package cn.xawl.common.constant;

/**
 * @author lh
 * @date 2020/08/11 15:22:02
 **/
public class WareConstant {

    public enum PurchaseStatusEnum {
        /*
        * <el-option label="新建" :value="0"></el-option>
          <el-option label="已分配" :value="1"></el-option>
          <el-option label="已领取" :value="2"></el-option>
          <el-option label="已完成" :value="3"></el-option>
          <el-option label="有异常" :value="4"></el-option>*/
        CREATED(0),
        ALLOCATED(1),
        RECEIVED(2),
        FINISHED(3),
        EXCEPTION(4)
        ;

        private final int status;

        PurchaseStatusEnum(int status) {
            this.status = status;
        }

        public int getStatus() {
            return this.status;
        }

    }


    public enum PurchaseDetailStatusEnum {
        //状态[0新建，1已分配，2正在采购，3已完成，4采购失败]

        CREATED(0),
        ALLOCATED(1),
        PURCHASING(2),
        FINISHED(3),
        FAILURE(4)
        ;
        private final int status;

        PurchaseDetailStatusEnum(int status) {
            this.status = status;
        }

        public int getStatus() {
            return this.status;
        }


    }

}
